#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>

void* run_thread(void* args)
{
  char* msg = (char*)args;
  while(1)
  {
    printf("im a thread my msg is:%s\n" , msg);
    sleep(1);
  }
}


int main()
{
  pthread_t tid;
  pthread_create(&tid ,NULL ,run_thread ,(void*)"thread 1");
  while(1)
  {
    printf("im main thread\n");
    sleep(1);
  }
  return 0;
}
